const nodata = require('../tw-lib-base/no-data/props')

module.exports = {
  data: {
    type: Array,
    default () {
      return [
        [
          '课堂预习',
          '500次',
          '20次'
        ],
        [
          '主题投票',
          '400次',
          '10次'
        ],
        [
          '画布',
          '300次',
          '15次'
        ]
      ]
    },
    name: '图表数据集',
    filedType: 'api'
  },

  singleModel: {
    type: Boolean,
    default: false,
    name: '单行模式',
    filedType: 'switch'
  },

  textColors: {
    type: Array,
    default () {
      return ['#fff', '#fff', '#fff', '#fff']
    },
    name: '颜色列表',
    filedType: 'list',
    subType: 'color',
    subDefault: '#fff',
    max: 5
  },

  textFonts: {
    type: String,
    default: '16px,16px,16px',
    nameTip: '各列字体大小, 逗号分隔',
    name: '字体列表',
    filedType: 'string'
  },

  bgImg: {
    type: Array,
    default () {
      return []
    },
    name: '背景图片',
    filedType: 'file',
    limit: 1,
    maxSize: 1024
  },

  borderRadius: {
    type: String,
    default: '10px',
    name: '边框圆角',
    filedType: 'string'
  },

  solidHeight: {
    type: String,
    default: '1px',
    nameTip: '关闭单行模式才显示下划线',
    name: '下划线高度',
    filedType: 'string'
  },

  solidWidth: {
    type: String,
    default: '90%',
    name: '下划线宽度',
    filedType: 'string'
  },

  solidPosition: {
    type: String,
    default: '30px',
    name: '下划线位置',
    filedType: 'string'
  },

  solidColor: {
    type: String,
    default: 'rgba(255,255,255,.2)',
    name: '下划线颜色',
    filedType: 'color'
  },

  showSortIcon: {
    type: Boolean,
    default: false,
    name: '是否显示排名',
    nameTip: '多行模式下有效',
    filedType: 'switch'
  },

  alignType: {
    type: String,
    default: 'center',
    name: '对齐方式',
    filedType: 'string'
  },

  marginLeft: {
    type: String,
    default: '0',
    name: '左边距',
    filedType: 'string'
  },

  ...nodata
}
